﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations.Schema;
using System.Configuration;

namespace Himall.Entity
{
    public partial class VShopInfo
    {



        /// <summary>
        /// Logo路径
        /// </summary>
      
        public string Logo
        {
            get { return ImageServerUrl + logo; }
            set
            {
                if (!string.IsNullOrWhiteSpace(value) && !string.IsNullOrWhiteSpace(ImageServerUrl))
                    logo = value.Replace(ImageServerUrl, "");
                else
                    logo = value;
            }
        }

        /// <summary>
        /// 背景图片路径
        /// </summary>
      
        public string BackgroundImage
        {
            get { return ImageServerUrl + backgroundImage; }
            set
            {
                if (!string.IsNullOrWhiteSpace(value) && !string.IsNullOrWhiteSpace(ImageServerUrl))
                    backgroundImage = value.Replace(ImageServerUrl, "");
                else
                    backgroundImage = value;
            }
        }
        /// <summary>
        /// 显示排序，需数据补充
        /// </summary>
        [NotMapped]
        public int? ShowSequence { get; set; }

    }
}
